package waitandnotify;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class Desk {
    /*
    * 控制生产者和消费者的执行
    *
    * */

    // 0 没有面条 1 有面条
     public static int foodFlag = 0;

     // 总个数
    public static int count = 10;

    // 锁对象
    static Lock lock = new ReentrantLock();

}
